import request from '@/utils/request'

// 查询素材库类别列表
export function listAData(query) {
  return request({
    url: '/system/aData/list',
    method: 'get',
    params: query
  })
}

// 查询素材库类别详细
export function getAData(id) {
  return request({
    url: '/system/aData/' + id,
    method: 'get'
  })
}

// 新增素材库类别
export function addAData(data) {
  return request({
    url: '/system/aData',
    method: 'post',
    data: data
  })
}

// 修改素材库类别
export function updateAData(data) {
  return request({
    url: '/system/aData',
    method: 'put',
    data: data
  })
}

// 删除素材库类别
export function delAData(id) {
  return request({
    url: '/system/aData/' + id,
    method: 'delete'
  })
}

// 逻辑删除素材库类别
export function logicDelAData(id) {
  return request({
    url: '/system/aData/logicDel/' + id,
    method: 'delete'
  })
}
